<template>
	<view class="activity-container">
		<!-- 时间显示 -->
		<view class="time-badge">
			今天 21:59
		</view>
		
		<!-- 早餐图片 -->
		<view class="breakfast-image-container">
			<image 
				class="breakfast-image" 
				src="/static/svg/breakfast-photo-style.svg" 
				mode="aspectFill"
			/>
		</view>
		
		<!-- 内容区域 -->
		<view class="content-area">
			<!-- 标题 -->
			<view class="title">
				精致的生活，从一顿丰盛的早餐开始
			</view>
			
			<!-- 描述文本 -->
			<view class="description">
				不用在为早餐吃什么而苦苦争扎啦，快捷简便又营养的网红早餐，只用花费几分钟就能制作好，高逼格西式早餐......
			</view>
		</view>
	</view>
</template>

<script setup>
import { ref } from 'vue'

const isLiked = ref(false)
const likeCount = ref(128)

const toggleLike = () => {
	isLiked.value = !isLiked.value
	if (isLiked.value) {
		likeCount.value++
	} else {
		likeCount.value--
	}
}

const showComments = () => {
	uni.showToast({
		title: '查看评论',
		icon: 'none'
	})
}

const shareContent = () => {
	uni.showToast({
		title: '分享成功',
		icon: 'success'
	})
}
</script>

<style scoped>
.activity-container {
	padding: 0;
	background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	position: relative;
}

.time-badge {
	background-color: rgba(0, 0, 0, 0.7);
	color: white;
	padding: 16rpx 32rpx;
	border-radius: 25rpx;
	font-size: 28rpx;
	margin: 60rpx 0 40rpx 0;
	backdrop-filter: blur(10rpx);
	box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.15);
}

.breakfast-image-container {
	width: 93vw;
	height: 400rpx;
	border-radius: 0;
	overflow: hidden;
	position: relative;
	box-shadow: 0 10rpx 30rpx rgba(0, 0, 0, 0.2);
}

.breakfast-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.content-area {
	width: 93vw;
	box-sizing: border-box;
	background-color: white;
	border-radius: 0;
	padding: 50rpx 40rpx 40rpx 40rpx;
	box-shadow: 0 -10rpx 30rpx rgba(0, 0, 0, 0.1);
	margin-top: -20rpx;
	position: relative;
	z-index: 2;
}

.title {
	font-size: 30rpx;
	font-weight: 700;
	color: #2c3e50;
	line-height: 1.3;
	margin-bottom: 30rpx;
	letter-spacing: 1rpx;
}

.description {
	font-size: 26rpx;
	color: #7f8c8d;
	line-height: 1.8;
	text-align: justify;
	letter-spacing: 0.5rpx;
}

.interaction-area {
	display: flex;
	justify-content: space-around;
	align-items: center;
	padding: 40rpx 0 20rpx 0;
	border-top: 2rpx solid #ecf0f1;
	margin-top: 20rpx;
}

.interaction-btn {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 24rpx 32rpx;
	border-radius: 16rpx;
	transition: all 0.3s ease;
	background-color: #f8f9fa;
	min-width: 120rpx;
}

.interaction-btn:active {
	background-color: #e9ecef;
	transform: scale(0.95);
}

.icon {
	width: 52rpx;
	height: 52rpx;
	margin-bottom: 12rpx;
	filter: drop-shadow(0 2rpx 4rpx rgba(0, 0, 0, 0.1));
}

.btn-text {
	font-size: 26rpx;
	color: #6c757d;
	transition: color 0.3s ease;
	font-weight: 500;
}

.btn-text.liked {
	color: #e74c3c;
	font-weight: 700;
}
</style>
